using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace UDART
{
    public class Configuration
    {
        #region Properties
        public int Helium_Min
        {
            get { return Properties.Settings.Default.helium_min; }
            set
            {
                Properties.Settings.Default.helium_min = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Helium_Max
        {
            get { return Properties.Settings.Default.helium_max; }
            set
            {
                Properties.Settings.Default.helium_max = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Fuel_Min
        {
            get { return Properties.Settings.Default.fuel_min; }
            set
            {
                Properties.Settings.Default.fuel_min = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Fuel_Max
        {
            get { return Properties.Settings.Default.fuel_max; }
            set
            {
                Properties.Settings.Default.fuel_max = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Lox_Min
        {
            get { return Properties.Settings.Default.lox_min; }
            set
            {
                Properties.Settings.Default.lox_min = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Lox_Max
        {
            get { return Properties.Settings.Default.lox_max; }
            set
            {
                Properties.Settings.Default.lox_max = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Temp_Min
        {
            get { return Properties.Settings.Default.temp_min; }
            set
            {
                Properties.Settings.Default.temp_min = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Burn_Time
        {
            get { return Properties.Settings.Default.burn_time; }
            set
            {
                Properties.Settings.Default.burn_time = value;
                Properties.Settings.Default.Save();
            }
        }
        public string Com_Port
        {
            get { return Properties.Settings.Default.com_port; }
            set
            {
                Properties.Settings.Default.com_port = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Baud_Rate
        {
            get { return Properties.Settings.Default.baud_rate; }
            set
            {
                Properties.Settings.Default.baud_rate= value;
                Properties.Settings.Default.Save();
            }
        }
        public int Engine_Min
        {
            get { return Properties.Settings.Default.engine_min; }
            set
            {
                Properties.Settings.Default.engine_min = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Engine_Max
        {
            get { return Properties.Settings.Default.engine_max; }
            set
            {
                Properties.Settings.Default.engine_max = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Timeout
        {
            get { return Properties.Settings.Default.timeout; }
            set
            {
                Properties.Settings.Default.timeout = value;
                Properties.Settings.Default.Save();
            }
        }
        public int Interval
        {
            get { return Properties.Settings.Default.interval; }
            set
            {
                Properties.Settings.Default.interval = value;
                Properties.Settings.Default.Save();
            }
        }
        #endregion

        public Configuration()
        {
        }
    }
}
